import request from '../request'

const Api = {
  page: '/api/sys/tcc/page',
  save: '/api/sys/tcc/save',
  Update: '/api/sys/tcc/Update',
  remove: '/api/sys/tcc/remove',
  removeBatch: '/api/sys/tcc/removeBatch',
}

/** 耗材列表 */
export const page = data => {
  return request.request({
    url: Api.page,
    params: data,
    method: 'GET'
  })
}

/** 新增耗材 */
export const save = data => {
  return request.request({
    url: Api.save,
    data: data,
    method: 'POST'
  })
}
/** 修改耗材 */
export const Update = data => {
  return request.request({
    url: Api.Update,
    data: data,
    method: 'POST'
  })
}
/** 删除耗材 */
export const remove = data => {
  return request.request({
    url: Api.remove,
    params: data,
    method: 'DELETE'
  })
}

/** 批量删除 */
export const removeBatch = data => {
  return request.request({
    url: Api.removeBatch,
    params: data,
    method: 'DELETE'
  })
}
